package br.com.beiramar.entity.imovel.situacaoImovel;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "SituacaoImovel", schema = "ev")
@NamedQueries({ @NamedQuery(name = "situacaoImovel.Dados", query = "Select Object(result) from SituacaoImovel result") })
public class SituacaoImovel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "idSituacaoImovel", unique = true, nullable = false)
	private Integer idSituacaoImovel;

	@Column(name = "situacaoImovel")
	private String situacaoImovel;

	public Integer getIdSituacaoImovel() {
		return idSituacaoImovel;
	}

	public void setIdSituacaoImovel(Integer idSituacaoImovel) {
		this.idSituacaoImovel = idSituacaoImovel;
	}

	public String getSituacaoImovel() {
		return situacaoImovel;
	}

	public void setSituacaoImovel(String situacaoImovel) {
		this.situacaoImovel = situacaoImovel;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((idSituacaoImovel == null) ? 0 : idSituacaoImovel.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SituacaoImovel other = (SituacaoImovel) obj;
		if (idSituacaoImovel == null) {
			if (other.idSituacaoImovel != null)
				return false;
		} else if (!idSituacaoImovel.equals(other.idSituacaoImovel))
			return false;
		return true;
	}
}
